﻿{% load i18n poll_tags %}
<link href="{{ STATIC_URL }}css/style.css" rel="stylesheet" type="text/css" />
<center>
<h2>{% trans "نتيحة التصويت" %}</h2>

	{% if messages %}

	<div class="messages">

	  {% for message in messages %}

	  <span{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}.</span>

	  {% endfor %}

	</div>

	{% endif %}
        <br/>
	<h3>{{ poll.question }}</h3>

	     <ul class="list2">

	{% for choice in poll.choice_set.all %}

	    <li>{{ choice.choice }}
             <br/>    {{ choice.votes }}  صوت
            <br/> {% get_choice_rate poll choice %} </li>

	    <div name="choice" id="{{ choice.votes }}"></div>

	{% endfor %}

	</ul>
    <br/>
    
<form>
<input type=button value="إغلق النافذة" onClick="javascript:window.close();">
</form> 

	</center>
  
  